package com.baizhi.service;

import com.baizhi.entity.AdminRole;
import com.baizhi.entity.Menu;
import com.baizhi.entity.Role;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author longyang
 * @since 2022-01-13
 */
public interface IAdminRoleService extends IService<AdminRole> {
    //添加角色
    Integer addRole(AdminRole adminRole);
    //查看该用户拥有哪些角色id
    List<AdminRole> selectRoleByUser(int userId);
    //查询当前登录人的权限信息
    Menu selectMenuByUser(int resourceid);
}
